<template>
  <div class="home">
    <div class="home-main">
      <keep-alive include="findhouse">
        <router-view />
      </keep-alive>
    </div>
    <van-tabbar v-model="active" :fixed="false" route>
    <van-tabbar-item icon="home-o" to="/home/homes">首页</van-tabbar-item>
    <van-tabbar-item icon="search" to="/home/findhouse">找房</van-tabbar-item>
    <van-tabbar-item icon="friends-o" to="/home/my">我的</van-tabbar-item>
  </van-tabbar>
  </div>
</template>

<script>
export default {
  data() {
    return {
      active: 0,
    };
  },
  created(){
    console.log(this.$route,'$route');
    console.log(this.$router,'$router');
  }
}
</script>
<style lang="less" scoped>
.home{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  .home-main{
    flex: 1;
    overflow-y: auto;
  }
}
</style>
